package com.yuchen.jaxrs;

import java.io.Serializable;

/**
 * @author Jack Q
 * 响应的Bean
 */
public class Responses implements Serializable{

    private boolean status; //
    private String message;
    private String json; //bean ,list,map 转换为json

    public Responses() {
    }

    public Responses(boolean status, String message) {
        this.status = status;
        this.message = message;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    @Override
    public String toString() {
        return "Responses{" +
                "status=" + status +
                ", message='" + message + '\'' +
                ", json='" + json + '\'' +
                '}';
    }
}
